課程:完成多媒體系統 115 的 18 週教材 - #16
Conversation
Co-authored-by: willismax <2055349+willismax@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7082d2a454
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| seconds = audio.duration / len(images) | ||
| scenes = [] | ||
| for index, path in enumerate(images, start=1): | ||
| background = ImageClip(color=(18, 20, 28), size=(WIDTH, HEIGHT)).with_duration(seconds) |
There was a problem hiding this comment.
Construct the background with ColorClip
With the declared MoviePy 2.x dependency, ImageClip represents an existing image and does not accept the color and size keywords. Whenever valid image and narration inputs reach this loop, the first scene raises TypeError instead of producing rough_cut.mp4; the same code is embedded in W15_Make_Short.ipynb. Import and use ColorClip for this generated background.
Useful? React with 👍 / 👎.
| const fs = require('fs'); | ||
| const path = require('path'); | ||
| const pptxgen = require('pptxgenjs'); | ||
| const html2pptx = require('C:/Users/Willis/.agents/skills/pptx/scripts/html2pptx.js'); |
There was a problem hiding this comment.
Remove the author-local slide-generator dependency
On every machine that does not have this exact Windows user profile and private .agents installation, Node fails at startup while resolving this literal path, so neither this script nor run_weekly_slides_v4.js can regenerate any committed slide deck. Resolve html2pptx from a repository-managed dependency or a configurable/relative tool path instead.
Useful? React with 👍 / 👎.
內容
課程安排
驗證